import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/Home.vue'
import FormDesigner from '../views/form-designer/index.vue'
import Layout from '../views/form-flow-layout/index.vue'

const router = createRouter({
    history: createWebHistory(),
    routes: [
        {
            path: '/',
            name: 'home',
            component: Home
        },
        {
            path: '/about',
            name: 'about',
            // 路由懒加载
            component: () => import('../views/About.vue')
        },
        {
            path: '/form-designer',
            name: 'FormDesigner',
            component: FormDesigner
        },
        {
            path: '/table',
            // 路由懒加载
            component: () => import('../views/table-test/tableperf.vue')
        },
        {
            path: '/layout',
            name: 'Layout',
            component: Layout
        }

    ]
})

export default router 